package cn.lg.soar.flow.api.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "节点类型")
public enum NodeTypeEnum implements IDict<Integer>, IEnum<Integer> {

    /**
     * 或签：任一审批人通过即视为通过
     */
    OR_SIGN("或签", 0),

    /**
     * 会签：必须指定数量的审批人都通过
     */
    JOIN_SIGN("会签", 1),

    /**
     * 串行审批：依次逐个审批
     */
    SERIAL("串行", 2);

    NodeTypeEnum(String label, int value){
        this.label = label;
        this.value = value;
    }

    private final String label;
    private final int value;
    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String getLabel() {
        return this.label;
    }

}
